3.7.41 \(\int (3-5 \sin (e+f x))^{-1-m} (a+a \sin (e+f x))^m \, dx\) [641]

Optimal. Leaf size=113 \[ \frac {\cos (e+f x) \, _2F_1\left (\frac {1}{2},-m;1-m;-\frac {3-5 \sin (e+f x)}{1+\sin (e+f x)}\right ) (3-5 \sin (e+f x))^{-m} \sqrt {\frac {1-\sin (e+f x)}{1+\sin (e+f x)}} (a+a \sin (e+f x))^m}{4 f m (1-\sin (e+f x))} \]

[Out]

1/4*cos(f*x+e)*hypergeom([1/2, -m],[1-m],(-3+5*sin(f*x+e))/(1+sin(f*x+e)))*(a+a*sin(f*x+e))^m*((1-sin(f*x+e))/
(1+sin(f*x+e)))^(1/2)/f/m/((3-5*sin(f*x+e))^m)/(1-sin(f*x+e))

________________________________________________________________________________________

Rubi [A]
time = 0.07, antiderivative size = 113, normalized size of antiderivative = 1.00, number of steps used = 2, number of rules used = 2, integrand size = 29, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.069, Rules used = {2867, 134} \begin {gather*} \frac {\sqrt {\frac {1-\sin (e+f x)}{\sin (e+f x)+1}} \cos (e+f x) (3-5 \sin (e+f x))^{-m} (a \sin (e+f x)+a)^m \, _2F_1\left (\frac {1}{2},-m;1-m;-\frac {3-5 \sin (e+f x)}{\sin (e+f x)+1}\right )}{4 f m (1-\sin (e+f x))} \end {gather*}

Antiderivative was successfully verified.

[In]

Int[(3 - 5*Sin[e + f*x])^(-1 - m)*(a + a*Sin[e + f*x])^m,x]

[Out]

(Cos[e + f*x]*Hypergeometric2F1[1/2, -m, 1 - m, -((3 - 5*Sin[e + f*x])/(1 + Sin[e + f*x]))]*Sqrt[(1 - Sin[e +
f*x])/(1 + Sin[e + f*x])]*(a + a*Sin[e + f*x])^m)/(4*f*m*(3 - 5*Sin[e + f*x])^m*(1 - Sin[e + f*x]))

Rule 134

Int[((a_.) + (b_.)*(x_))^(m_)*((c_.) + (d_.)*(x_))^(n_)*((e_.) + (f_.)*(x_))^(p_), x_Symbol] :> Simp[((a + b*x
)^(m + 1)*(c + d*x)^n*((e + f*x)^(p + 1)/((b*e - a*f)*(m + 1)))*Hypergeometric2F1[m + 1, -n, m + 2, (-(d*e - c
*f))*((a + b*x)/((b*c - a*d)*(e + f*x)))])/((b*e - a*f)*((c + d*x)/((b*c - a*d)*(e + f*x))))^n, x] /; FreeQ[{a
, b, c, d, e, f, m, n, p}, x] && EqQ[m + n + p + 2, 0] &&  !IntegerQ[n]

Rule 2867

Int[((a_) + (b_.)*sin[(e_.) + (f_.)*(x_)])^(m_)*((c_) + (d_.)*sin[(e_.) + (f_.)*(x_)])^(n_.), x_Symbol] :> Dis
t[a^2*(Cos[e + f*x]/(f*Sqrt[a + b*Sin[e + f*x]]*Sqrt[a - b*Sin[e + f*x]])), Subst[Int[(a + b*x)^(m - 1/2)*((c
+ d*x)^n/Sqrt[a - b*x]), x], x, Sin[e + f*x]], x] /; FreeQ[{a, b, c, d, e, f, m, n}, x] && NeQ[b*c - a*d, 0] &
& EqQ[a^2 - b^2, 0] && NeQ[c^2 - d^2, 0] &&  !IntegerQ[m]

Rubi steps

\begin {align*} \int (3-5 \sin (e+f x))^{-1-m} (a+a \sin (e+f x))^m \, dx &=\frac {\left (a^2 \cos (e+f x)\right ) \text {Subst}\left (\int \frac {(3-5 x)^{-1-m} (a+a x)^{-\frac {1}{2}+m}}{\sqrt {a-a x}} \, dx,x,\sin (e+f x)\right )}{f \sqrt {a-a \sin (e+f x)} \sqrt {a+a \sin (e+f x)}}\\ &=\frac {\cos (e+f x) \, _2F_1\left (\frac {1}{2},-m;1-m;-\frac {3-5 \sin (e+f x)}{1+\sin (e+f x)}\right ) (3-5 \sin (e+f x))^{-m} \sqrt {\frac {1-\sin (e+f x)}{1+\sin (e+f x)}} (a+a \sin (e+f x))^m}{4 f m (1-\sin (e+f x))}\\ \end {align*}

________________________________________________________________________________________

Mathematica [C] Result contains complex when optimal does not.
time = 0.60, size = 248, normalized size = 2.19 \begin {gather*} -\frac {2^{-1+2 m} \, _2F_1\left (1+m,1+2 m;2 (1+m);\frac {2 \cos \left (\frac {1}{4} (2 e-\pi +2 f x)\right )}{\cos \left (\frac {1}{4} (2 e-\pi +2 f x)\right )+2 \sin \left (\frac {1}{4} (2 e-\pi +2 f x)\right )}\right ) (3-5 \sin (e+f x))^{-m} (a (1+\sin (e+f x)))^m (1+i \cos (e+f x)+\sin (e+f x)) \left (\frac {-\cos \left (\frac {1}{4} (2 e-\pi +2 f x)\right )+2 \sin \left (\frac {1}{4} (2 e-\pi +2 f x)\right )}{\cos \left (\frac {1}{4} (2 e-\pi +2 f x)\right )+2 \sin \left (\frac {1}{4} (2 e-\pi +2 f x)\right )}\right )^m (\cosh (m \log (4))-\sinh (m \log (4)))}{f (1+2 m) ((1-2 i)-(2-i) \cos (e+f x)+(1+2 i) \sin (e+f x))} \end {gather*}

Antiderivative was successfully verified.

[In]

Integrate[(3 - 5*Sin[e + f*x])^(-1 - m)*(a + a*Sin[e + f*x])^m,x]

[Out]

-((2^(-1 + 2*m)*Hypergeometric2F1[1 + m, 1 + 2*m, 2*(1 + m), (2*Cos[(2*e - Pi + 2*f*x)/4])/(Cos[(2*e - Pi + 2*
f*x)/4] + 2*Sin[(2*e - Pi + 2*f*x)/4])]*(a*(1 + Sin[e + f*x]))^m*(1 + I*Cos[e + f*x] + Sin[e + f*x])*((-Cos[(2
*e - Pi + 2*f*x)/4] + 2*Sin[(2*e - Pi + 2*f*x)/4])/(Cos[(2*e - Pi + 2*f*x)/4] + 2*Sin[(2*e - Pi + 2*f*x)/4]))^
m*(Cosh[m*Log[4]] - Sinh[m*Log[4]]))/(f*(1 + 2*m)*(3 - 5*Sin[e + f*x])^m*((1 - 2*I) - (2 - I)*Cos[e + f*x] + (
1 + 2*I)*Sin[e + f*x])))

________________________________________________________________________________________

Maple [F]
time = 0.15, size = 0, normalized size = 0.00 \[\int \left (3-5 \sin \left (f x +e \right )\right )^{-1-m} \left (a +a \sin \left (f x +e \right )\right )^{m}\, dx\]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((3-5*sin(f*x+e))^(-1-m)*(a+a*sin(f*x+e))^m,x)

[Out]

int((3-5*sin(f*x+e))^(-1-m)*(a+a*sin(f*x+e))^m,x)

________________________________________________________________________________________

Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((3-5*sin(f*x+e))^(-1-m)*(a+a*sin(f*x+e))^m,x, algorithm="maxima")

[Out]

integrate((a*sin(f*x + e) + a)^m*(-5*sin(f*x + e) + 3)^(-m - 1), x)

________________________________________________________________________________________

Fricas [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((3-5*sin(f*x+e))^(-1-m)*(a+a*sin(f*x+e))^m,x, algorithm="fricas")

[Out]

integral((a*sin(f*x + e) + a)^m*(-5*sin(f*x + e) + 3)^(-m - 1), x)

________________________________________________________________________________________

Sympy [F(-1)] Timed out
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Timed out} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((3-5*sin(f*x+e))**(-1-m)*(a+a*sin(f*x+e))**m,x)

[Out]

Timed out

________________________________________________________________________________________

Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((3-5*sin(f*x+e))^(-1-m)*(a+a*sin(f*x+e))^m,x, algorithm="giac")

[Out]

integrate((a*sin(f*x + e) + a)^m*(-5*sin(f*x + e) + 3)^(-m - 1), x)

________________________________________________________________________________________

Mupad [F]
time = 0.00, size = -1, normalized size = -0.01 \begin {gather*} \int \frac {{\left (a+a\,\sin \left (e+f\,x\right )\right )}^m}{{\left (3-5\,\sin \left (e+f\,x\right )\right )}^{m+1}} \,d x \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((a + a*sin(e + f*x))^m/(3 - 5*sin(e + f*x))^(m + 1),x)

[Out]

int((a + a*sin(e + f*x))^m/(3 - 5*sin(e + f*x))^(m + 1), x)

________________________________________________________________________________________